package com.example.teesystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;


/**
 * @TableName t_log
 */
@TableName(value = "t_log")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WebLog implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 操作描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 操作用户
     */
    @TableField(value = "user_name")
    private String username;

    /**
     * 用户账户
     */
    @TableField(value = "user_account")
    private String userAccount;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 操作时间
     */
    @TableField(value = "service_time", fill = FieldFill.INSERT)
    private Date serviceTime;

    /**
     * URL
     */
    @TableField(value = "url")
    private String url;

    /**
     * IP地址
     */
    @TableField(value = "ip")
    private String ip;

    /**
     * 当前操作的课程Id
     */
    @TableField(value = "course_id")
    private Integer courseId = 0;


}
